package ch.usi.inf.pf2.node;

import ch.usi.inf.pf2.Addition;
import ch.usi.inf.pf2.Constant;
import junit.framework.TestCase;
/**
 * A AdditionTest ,it tests if Addition class works or not.
 * 
 * @author Elham.menzer@gmail.com
 */

public class AdditionTest extends TestCase {

		
		public void testEvaluate(){
			Addition add1 = new Addition(new Constant(2), new Constant(3));
			add1.evaluate();
			assertEquals(5.0,add1.evaluate());
			
		}

	}


